package pers.mobian.springfifth;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @Date 2021/7/17 13:59
 * @Created mobian
 * @Description
 */
public class Test3 {
	public static void main(String[] args) {

		AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(ConfigBean.class);
		Tbnd tbnd = context.getBean("tbnd", Tbnd.class);
		tbnd.show();

		// 获取的是getObject方法返回的对象
//		System.out.println(context.getBean("teacher"));
		// 获取的是getObject方法所属类的对象
//		System.out.println(context.getBean("&teacher"));
//		context.close();
	}
}
